package com.itstu.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itstu.common.utils.PageUtils;
import com.itstu.gulimall.member.entity.MemberEntity;
import com.itstu.gulimall.member.exception.PhoneExistException;
import com.itstu.gulimall.member.exception.UserNameExistException;
import com.itstu.gulimall.member.vo.MemberLoginVo;
import com.itstu.gulimall.member.vo.MemberRegistVo;
import com.itstu.gulimall.member.vo.SocialUserVo;

import java.util.Map;

/**
 * 会员
 *
 * @author shhjiang
 * @email shhjiang_001@163.com
 * @date 2020-04-23 21:53:34
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveRegistVo(MemberRegistVo vo);
    void checkUserNameUnique(String email) throws UserNameExistException;
    void checkPhoneUnique(String email) throws PhoneExistException;

    MemberEntity login(MemberLoginVo vo);

    MemberEntity login(SocialUserVo vo) throws Exception;
}

